package com.chushouya.manager.service.admin;

import com.chushouya.common.dto.OperateLogDTO;
import com.chushouya.manager.dto.admin.log.OperateLogListDTO;
import com.chushouya.manager.dto.admin.log.OperateLogQueryDTO;
import com.general.framework.core.schema.PageResult;
import org.springframework.scheduling.annotation.Async;

/**
 * 操作日志
 */
public interface OperateLogService {

    /**
     * 清空操作日志
     */
    void clean(Integer cleanBeforeDays);

    /**
     * 查询操作日志
     */
    PageResult<OperateLogListDTO> selectPageResult(OperateLogQueryDTO query);


    @Async
    void saveOperateLog(OperateLogDTO log);
}
